package com.cx.contentcenter.feign;

import com.cx.contentcenter.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: ThinkPad
 * @Creation: 2021/9/10 12:54
 * @Desc: feign远程调用
 */
@FeignClient(name="user-center")
public interface UserFeignClient {

    @GetMapping("/user/selectOne/{userId}")
    public User findByUserId(@PathVariable Integer userId);
}
